import { ref, computed } from "vue";
import { defineStore } from "pinia";

export const useStretchStore = defineStore(
  "stretch",
  () => {
    const isCollapse = ref(false);
    function changeIsCollapse() {
      isCollapse.value = !isCollapse.value;
    }
    return { isCollapse, changeIsCollapse };
  },
  {
    persist: {
      enabled: true, //Store中数据持久化生效
    },
  }
);
